from django.db import models

# Create your models here.

class Publish(models.Model):
    # 出版社名字
    name = models.CharField(max_length=32)
    # 出版社地址
    addr = models.CharField(max_length=255)
    # 出版社联系邮箱
    email = models.EmailField()

    class Meta():
        db_table = "publish"
        verbose_name_plural = "出版社表"

    def __str__(self):
        return f"这是 {self.name} 出版社对象!"